<template>
  <div class="not-found">
    <div class="content">
      <h1>404</h1>
      <h2>抱歉，您访问的页面不存在</h2>
      <a-button type="primary" @click="router.push('/')">
        返回首页
      </a-button>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()
</script>

<style lang="less" scoped>
.not-found {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f0f2f5;

  .content {
    text-align: center;

    h1 {
      font-size: 120px;
      color: @primary-color;
      margin: 0;
      line-height: 1.2;
    }

    h2 {
      font-size: 24px;
      color: @text-color;
      margin: 24px 0;
    }
  }
}
</style> 